package com.java.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.java.entity.Good;

public interface GoodMapper {
    int deleteByPrimaryKey(Integer goodId);

    int insert(Good record);

    int insertSelective(Good record);

    Good selectByPrimaryKey(Integer goodId);

    int updateByPrimaryKeySelective(Good record);

    int updateByPrimaryKey(Good record);

    List<Good> selectByCondition(Good record);
    
   
    
    List<Good> selectAll();
    
    List<Good> getPaged(@Param("pageSize") int pageSize,@Param("pageNum") int pageNum);
    
    int count();
}